<?php
# this file is not in cp
# it is just run from there =)
# it mean that security check should be
chdir ("../../../..");
include "t16cms/php/config.php";
include "t16cms/php/user.php";

ob_start();
if (get_reg()==1) {
ob_end_clean();
if (get_right($site_user['access'],4)){





mysql_connect($dbhost, $dbuser, $dbpasswd);
mysql_query('SET NAMES cp1251');
$query="delete from `".$dbprefix."articles` where `category`='".$site_categories[$_GET['category']]."' and md5(`title`)='".$_GET['art']."' limit 1";
$result=mysql_db_query($dbname, $query);





echo "Article deleted";

}else{echo "Please login";}
}else{echo "Please login";}








?>